<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
	<th:block th:include="include :: header('内容详细')" />
</head>
<body class="gray-bg">
	<div class="wrapper wrapper-content animated fadeInRight ibox-content">
		<div id="vertical-timeline" class="vertical-container light-timeline">
			<!--<div class="vertical-timeline-block">
				<div class="vertical-timeline-icon navy-bg">
					<i class="fa fa-briefcase"></i>
				</div>

				<div class="vertical-timeline-content">
					<h2>会议</h2>
					<p>上一年的销售业绩发布会。总结产品营销和销售趋势及销售的现状。
					</p>
					<a href="#" class="btn btn-sm btn-primary"> 更多信息</a>
					<span class="vertical-date">
                         	今天 <br>
                         <small>2月3日</small>
                     </span>
				</div>
			</div>

			<div class="vertical-timeline-block">
				<div class="vertical-timeline-icon blue-bg">
					<i class="fa fa-file-text"></i>
				</div>

				<div class="vertical-timeline-content">
					<h2>给张三发送文档</h2>
					<p>发送上年度《销售业绩报告》</p>
					<a href="#" class="btn btn-sm btn-success"> 下载文档 </a>
					<span class="vertical-date">
                         	今天 <br>
                         <small>2月3日</small>
                     </span>
				</div>
			</div>

			<div class="vertical-timeline-block">
				<div class="vertical-timeline-icon lazur-bg">
					<i class="fa fa-coffee"></i>
				</div>

				<div class="vertical-timeline-content">
					<h2>喝咖啡休息</h2>
					<p>喝咖啡啦，啦啦啦~~</p>
					<a href="#" class="btn btn-sm btn-info">更多</a>
					<span class="vertical-date"> 昨天 <br><small>2月2日</small></span>
				</div>
			</div>

			<div class="vertical-timeline-block">
				<div class="vertical-timeline-icon yellow-bg">
					<i class="fa fa-phone"></i>
				</div>

				<div class="vertical-timeline-content">
					<h2>给李四打电话</h2>
					<p>给李四打电话分配本月工作任务</p>
					<span class="vertical-date">昨天 <br><small>2月2日</small></span>
				</div>
			</div>

			<div class="vertical-timeline-block">
				<div class="vertical-timeline-icon lazur-bg">
					<i class="fa fa-user-md"></i>
				</div>

				<div class="vertical-timeline-content">
					<h2>公司年会</h2>
					<p>发年终奖啦，啦啦啦~~</p>
					<span class="vertical-date">前天 <br><small>2月1日</small></span>
				</div>
			</div>-->

			<div class="vertical-timeline-block">
				<div class="vertical-timeline-icon blue-bg">
					<i class="fa fa-file-text"></i>
				</div>

				<div class="vertical-timeline-content">
					<h2>[[${detail.title}]]</h2>
					<p>[[${detail.msgContent}]]</p>
					<span class="vertical-date">
						<span class="time" th:datetime="${#dates.format(detail.createTime, 'yyyy-MM-dd HH:mm:ss')}" ></span><br>
                         <small>[[${#dates.format(detail.createTime, 'yyyy年MM月dd日')}]]</small>
                     </span>
				</div>
			</div>
		</div>
    </div>
    <th:block th:include="include :: footer" />
	<script src="https://cdn.bootcss.com/timeago.js/3.0.2/timeago.js"></script>
	<script th:inline="javascript">
		$(function() {
			var target = $(parent.document);
			var close1 = target.find(".layui-layer-iframe").find(".layui-layer-close1");
			var btn0 = target.find(".layui-layer-iframe").find(".layui-layer-btn0");
			close1.on("click", cancel);
			btn0.on("click", cancel);

			// 不自动更新
			/*var timeagoInstance = timeago();// 实例
			var time = timeagoInstance.format('2018-03-2 17:13:00','zh_CN');
			console.log(time);*/

			// 自动更新
			var timeagoInstance = timeago();// 实例
			timeagoInstance.render(document.querySelectorAll('.time'),'zh_CN');

		});

		function cancel() {
			var parent = window.parent;
			parent.$.table.refresh();
		}
	</script>
</body>
</html>